from mediator import mediator
from mediator . tests . test_assistant import make_mediator_test_keyword_args

class gui_consts_fake :
    def __init__ ( self ) :
        self . _anchor_center = None
        self . _anchor_e = None
        self . _anchor_w = None
        self . _color_light_blue = None
        self . _fill_x = None
        self . _relief_sunken = None
        self . _side_top = None
        self . _side_bottom = None
        self . _sticky_nesw = None        
    def gui_side_top ( self ) :
        return self . _side_top
    def gui_side_bottom ( self ) :
        return self . _side_bottom
    def gui_fill_x ( self ) :
        return self . _fill_x
    def gui_relief_sunken ( self ) :
        return self . _relief_sunken
    def gui_sticky_nesw ( self ) :
        return self . _sticky_nesw
    def gui_anchor_center ( self ) :
        return self . _anchor_center
    def gui_anchor_w ( self ) :
        return self . _anchor_w
    def gui_anchor_e ( self ) :
        return self . _anchor_e
    def gui_color_light_blue ( self ) :
        return self . _color_light_blue

class mediator_gui_consts_tests : 
    'mediator_gui_consts'
    def __init__ ( self , test ) :
        self . _test = test
        self . _gui_consts = gui_consts_fake ( )
        self . _mediator = mediator ( )
        self . _mediator . register_modules ( ** make_mediator_test_keyword_args \
            ( 'gui_consts' 
            , self . _gui_consts 
            , None
            ) )
    def test_gui_side_top ( self ) :
        self . _gui_consts . _side_top = 'my top'
        self . _test . assume_equal ( self . _mediator . gui_side_top ( ) , 'my top' )
    def test_gui_side_bottom ( self ) :
        self . _gui_consts . _side_bottom = 'my bottom'
        self . _test . assume_equal ( self . _mediator . gui_side_bottom ( ) , 'my bottom' )
    def test_gui_fill_x ( self ) :
        self . _gui_consts . _fill_x = 'my x'
        self . _test . assume_equal ( self . _mediator . gui_fill_x ( ) , 'my x' )
    def test_gui_relief_sunken ( self ) :
        self . _gui_consts . _relief_sunken = 'my sunken'
        self . _test . assume_equal ( self . _mediator . gui_relief_sunken ( ) , 'my sunken' )
    def test_gui_sticky_nesw ( self ) :
        self . _gui_consts . _sticky_nesw = 'my sticky'
        self . _test . assume_equal ( self . _mediator . gui_sticky_nesw ( ) , 'my sticky' )
    def test_gui_anchor_center ( self ) :
        self . _gui_consts . _anchor_center = 'my center'
        self . _test . assume_equal ( self . _mediator . gui_anchor_center ( ) , 'my center' )
    def test_gui_anchor_w ( self ) :
        self . _gui_consts . _anchor_w = 'my w'
        self . _test . assume_equal ( self . _mediator . gui_anchor_w ( ) , 'my w' )
    def test_gui_anchor_e ( self ) :
        self . _gui_consts . _anchor_e = 'my e'
        self . _test . assume_equal ( self . _mediator . gui_anchor_e ( ) , 'my e' )
    def test_gui_color_light_blue ( self ) :
        self . _gui_consts . _color_light_blue = 'my light blue'
        self . _test . assume_equal ( self . _mediator . gui_color_light_blue ( ) , 'my light blue' )
